# -*- coding: utf-8 -*-
# Django settings for the example project.
import os

DEBUG = True
TEMPLATE_DEBUG = DEBUG

LOCALE_PATHS = 'locale'
ROOT_PATH = os.path.dirname(__file__)

# Valid languages
LANGUAGES = (
    # 'en', 'zh_TW' should match the directories in locale/*
    ('en_US', _('English')),
    ('zh_CN', _('Chinese')),
    )

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'zh_CN'

# If you set this to False, Django will make some optimizations so as not
# to load the internationalization machinery.
USE_I18N = True

ROOT_URLCONF = 'urls'

# List of callables that know how to import templates from various sources.
TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
)

TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(__file__),'templates','default'),
    # Put strings here, like "/home/html/django_templates" or "C:/www/django/templates".
    # Always use forward slashes, even on Windows.
    # Don't forget to use absolute paths, not relative paths.
)

TEMPLATE_CONTEXT_PROCESSORS = (
    'django.core.context_processors.auth',
    'django.core.context_processors.debug',
    'django.core.context_processors.request',
    'django.core.context_processors.i18n',
    'common.commonfunction.settings',
)

SITE_NAME = 'yoyokit'

# The default theme to use
DEFAULT_THEME = 'default'

DOMAIN = 'e-track.appspot.com'

# define global variant
PAGE_SIZE = 20
FRIEND_NEWLYDAYS = 7
# end global variant


# Allow local overrides, useful for testing during development
try:
  from local_settings import *
except ImportError:
  pass
